Developer Documentation

QuickTime 4 API Documentation

Wired Movies and Sprites

| Previous | Chapter Contents | Chapter Top | Next |

Defining a Key Frame Sample

To create a sprite track in a QuickTime movie, you must first create the movie itself, a track to contain the sprites, and the track's media.

After doing this, you can define a key frame sample. A key frame sample defines the number of sprites, their initial property values, and the shared image data used by the sprites in the key frame sample and in all override samples that follow the key frame sample. The sample code discussed in this section creates a single key frame sample and shows how to add images for other sprites, as well as actions for other sprites.

Creating the Movie, Sprite Track, and Media

Adding Images to the Key Frame Sample

Adding More Images for Other Sprites

Adding Sprites to the Key Frame Sample

Adding More Actions to Other Sprites

Adding Sample Data in Compressed Form


© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |